package edu.bit.water.dao;

import edu.bit.water.entity.EntityClassifiedStandard;
import edu.bit.water.entity.EntityWaterCount;
import edu.bit.water.entity.MetaWaterCount;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author HJS
 */
@Mapper
@Repository
public interface EntityWaterCountDao {

	//显示标签表中所有记录数据
	List<EntityWaterCount> select(int last_id);

	//根据给定的id号，更新所有字段
	int update(EntityWaterCount entityWaterCount)throws DuplicateKeyException;

	//更新entity_classified_standard的状态
    int stateUpdate(EntityClassifiedStandard entityClassifiedStandard);

    List<MetaWaterCount> getMetaData(String entity_classified_standard_num);

	int insertWaterCountData(EntityWaterCount entityWaterCount);

	void delete(Integer id);
}
